package com.erci.entity.DTO;

import com.erci.utils.StringToListTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AnimeDTO {
    private Integer id;              // 动漫ID
    private List<Integer> categoryIds= new ArrayList<>();;      // 所属分类ID
    private String name;             // 动漫名称
    private String imageUrl;         // 封面图片URL
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime; // 更新时间
    private Integer year;
    private Float rating;
    private String description;
}
